<template>
 <div class="toolbar" style="float:right;padding-top:0px;padding-right:15px;">
					<el-form :inline="true" size="mini">
						<el-form-item>
							<el-button-group>
								<el-tooltip :content="$t('action.refresh')" placement="top" v-if="reflash">
									<el-button icon="fa fa-refresh" @click="myQuery(-1)"></el-button>
								</el-tooltip> 

 
							<el-tooltip content="打印" placement="top"  v-if="print">
								<el-button icon="fa fa-print" @click="handlePreview" />
							</el-tooltip>

							<el-tooltip content="导出Excel" placement="top"  v-if="excel">
								<el-button icon="fa fa-file-excel-o" @click="exportExcel" />
							</el-tooltip>
				 
              <slot ></slot>



							</el-button-group>
						</el-form-item>
					</el-form>
		</div>
</template>

<script>
	import { myPrint,addHtmlTd } from "@/utils/LodopFuncs"
 
  import { myXlsExport } from "@/excel/myXls"
    
  export default {
    name: 'SReflash',
    props: {
      placeholder: "",
      reflash:true ,
      print:true,
      excel:true
    },
    data() {
      return {
            dateModel:""
      }
    },
    methods: {
      myQuery:function (){

        this.$emit('findPage', -1)
      },
      handlePreview:function (){
        this.$emit('handlePreview',myPrint) 
      },
       exportExcel:function (){
         
        this.$emit('exportExcel', myXlsExport)


      }
    }
  }
</script>
<style scoped lang="scss">
.action:hover {
  background: #636b6931;
}
</style>